//
//  CYCityChooseView.h
//  阿帕
//
//  Created by mac on 2019/12/30.
//  Copyright © 2019 GCY. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol CYChooseRegionDelegate <NSObject>

@optional
///获取单个区域信息
- (void)getChooseRegionCode:(NSString *)code andRegionName:(NSString *)name;

@required
///获取单个区域信息 
- (void)getAllInfoProvinceCode:(NSString *)provinceCode provinceName:(NSString *)provinceName cityCode:(NSString *)cityCode cityName:(NSString *)cityName countyCode:(NSString *)countyCode countyName:(NSString *)countyName;


@end

@interface CYCityChooseView : UIView

+ (CYCityChooseView *)shared;

- (void)show;

- (void)hidden;

/// 显示状态 1 从页面底部开始
@property(nonatomic, assign) NSInteger pageShowFlag;

/// 是否两级联动
@property(nonatomic, assign) BOOL isTwoLevel;

@property(weak, nonatomic) id <CYChooseRegionDelegate> delegate;

@end

NS_ASSUME_NONNULL_END
